home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 March / CMCD0305.ISO / Software / Demo / Itcomm / auscomp-itcommander-win5.exe / {pf} / Firebird / firebird.conf < prev    next >
Text File  |  2004-02-20  |  18KB  |  598 lines

  1. #######################################
  2. #
  3. # Firebird configuration file
  4. #
  5. # Comments
  6. # --------
  7. # The # character is used for comments and can be placed anywhere on a
  8. # line.  Anything following the # character on a line is considered a
  9. # comment.
  10. #
  11. # Examples:
  12. #
  13. #    # This is a comment
  14. #    DefaultDbCachePages = 2048   # This is an end-of-line comment
  15. #
  16. # Entries
  17. # -------
  18. # The default value for each entry is listed to the right of the "=".
  19. # To activate an entry, remove the leading "#"s and supply the desired
  20. # value.
  21. #
  22. # Please note, a number of the values are specified in **Bytes** (Not KB).
  23. # Accordingly, we have provided some simple conversion tables at the bottom
  24. # of this file.
  25. #
  26. # There are three types of configuration values: integer, boolean and string.
  27. # Integer
  28. # --------
  29. # Integers is what they sound like, an integral value. Examples:
  30. #   1
  31. #   42
  32. #   4711
  33. # Boolean
  34. # -------
  35. # Boolean is expressed as integer values with 0 (zero) being "false" and
  36. # non-zero is taken to mean "true". For consistency we recommend you
  37. # only use 0/1.
  38. # String
  39. # ------
  40. # Strings are also what they sound like, strings. Examples:
  41. #   RootDirectory  = /opt/firebird
  42. #   RemotePipeName = pipe47
  43. #
  44. #
  45. # Portions of this file have been reproduced/made available with the
  46. # permission of Ann Harrison @ IBPhoenix.
  47. #
  48. #######################################
  49.  
  50. # ==================================
  51. # Settings for all platforms/engines
  52. # ==================================
  53. #
  54. # ----------------------------
  55. # Specify the root directory under which Firebird is installed.
  56. # Can be used to override the OS-specifically determined one.
  57. #
  58. # Type: string
  59. #
  60. #RootDirectory =
  61.  
  62.  
  63. # ----------------------------
  64. # Database Paths/Directories
  65. #
  66. # DatabaseAccess may be None, Full or Restrict. If you choose Restrict, 
  67. # provide ';'-separated trees list, where database files are stored.
  68. # Relative paths are treated relative to RootDirectory entry
  69. # (see above). Default value 'Full' gives full access to all files
  70. # on your site. To specify access to specific trees, enum all required
  71. # paths (for Win32 this may be something like 'C:\DataBase;D:\Mirror', 
  72. # for unix - '/db;/mnt/mirrordb'). If you choose 'None', then only
  73. # databases listed in aliases.conf can be attached.
  74. #
  75. # UNCONTROLLED DATABASE ACCESS MAY COMPROMISE YOUR SYSTEM!
  76. # IT IS STRONGLY RECOMMENDED THAT THIS SETTING BE USED TO LIMIT
  77. # DATABASE LOCATIONS!
  78. #
  79. # Type: string (special format)
  80. #
  81. #DatabaseAccess = Full
  82.  
  83.  
  84. # ----------------------------
  85. # External File Paths/Directories
  86. #
  87. # ExternalFileAccess may be None, Full or Restrict. If you choose 
  88. # Restrict, provide ';'-separated trees list, where external files 
  89. # are stored. Relative paths are treated relative to RootDirectory entry
  90. # (see above). Default value 'None' disables any use of external files
  91. # on your site. To specify access to specific trees, enum all required
  92. # paths (for Win32 this may be something like 'C:\ExternalTables', 
  93. # for unix - '/db/extern;/mnt/extern').
  94. #
  95. # NOTE: THE EXTERNAL TABLE ENGINE FEATURE COULD BE USED TO COMPROMISE
  96. # THE SERVER/HOST AS WELL AS DATABASE SECURITY!!
  97. #
  98. # IT IS STRONGLY RECOMMENDED THAT THIS SETTING BE USED TO LIMIT
  99. # EXTERNAL TABLE LOCATIONS!
  100. #
  101. # Type: string (special format)
  102. #
  103. #ExternalFileAccess = None
  104.  
  105.  
  106. # ----------------------------
  107. # External Function (UDF) Paths/Directories
  108. #
  109. # UdfAccess may be None, Full or Restrict. If you choose 
  110. # Restrict, provide ';'-separated trees list, where UDF libraries
  111. # are stored. Relative paths are treated relative to RootDirectory entry
  112. # (see above). Default value 'Restrict UDF' provides the same restrictions
  113. # as in FB 1.0. To specify access to specific trees, enum all required
  114. # paths (for Win32 this may be something like 'C:\ExternalFunctions', 
  115. # for unix - '/db/extern;/mnt/extern').
  116. #
  117. # NOTE: THE EXTERNAL FUNCTION ENGINE FEATURE COULD BE USED TO COMPROMISE
  118. # THE SERVER/HOST AS WELL AS DATABASE SECURITY!!
  119. #
  120. # IT IS STRONGLY RECOMMENDED THAT THIS SETTING BE USED TO LIMIT
  121. # EXTERNAL FUNCTION LOCATIONS! SPECIALLY AVOID HAVING 
  122. # COMMON SUBTREES IN UdfAccess & ExternalFileAccess !
  123. #
  124. # Type: string (special format)
  125. #
  126. #UdfAccess = Restrict UDF
  127.  
  128.  
  129. # ----------------------------
  130. # Temporary directories
  131. #
  132. # Provide ';'-separated trees list, where temporary files are stored.
  133. # Relative paths are treated relative to RootDirectory entry
  134. # (see above). Default value is determined using FIREBIRD_TMP,
  135. # TEMP or TMP environment options. Every directory item may have optional
  136. # size argument to limit its storage, this argument follows the directory
  137. # name and must be separated by at least one space character. If the size
  138. # argument is omitted or invalid, then all available space in this
  139. # directory will be used.
  140. #
  141. # E.g.:
  142. # TempDirectories = c:\temp
  143. # or
  144. # TempDirectories = c:\temp;d:\temp
  145. # or
  146. # TempDirectories = c:\temp 100000000;d:\temp 500000000;e:\temp
  147. #
  148. # Type: string (special format)
  149. #
  150. #TempDirectories =
  151.  
  152.  
  153. # ----------------------------
  154. # Number of cached database pages
  155. #
  156. # This sets the number of pages from any one database that can be held
  157. # in cache at once. If you increase this value, the engine will
  158. # allocate more pages to the cache for every database. By default, the
  159. # SuperServer allocates 2048 pages for each database and the classic
  160. # allocates 75 pages per client connection per database.
  161. #
  162. # Type: integer
  163. #
  164. #DefaultDbCachePages = 2048
  165.  
  166.  
  167. # ----------------------------
  168. # In-memory sorting module
  169. #
  170. # The amount of memory allocated for each sort block.
  171. #
  172. # Type: integer
  173. #
  174. #SortMemBlockSize = 1048576
  175.  
  176. #
  177. # The maximum amount of memory to be allocated by the in-memory
  178. # sorting module.
  179. #
  180. # For Classic servers, this setting is defaulted to 8 MB.
  181. # Although it can be increased, the value applies to each client
  182. # connection/server instance and thus consumes a lot of memory.
  183. #
  184. # Type: integer
  185. #
  186. #SortMemUpperLimit = 67108864
  187.  
  188.  
  189. # ----------------------------
  190. # Backward-compatible parameter ordering as it was in FB v1/IB
  191. #
  192. # Type: boolean
  193. #
  194. #OldParameterOrdering = 0
  195.  
  196.  
  197. # ----------------------------
  198. # Boolean evaluation method (complete or shortcut)
  199. #
  200. # If your SQL code depends on side-effects of full evaluation of OR
  201. # and AND statements (right-hand-side terms), even if the expressions
  202. # final result could be determined by just examining the value of the
  203. # first term, you might need to turn this on.
  204. #
  205. # Type: boolean
  206. #
  207. #CompleteBooleanEvaluation = 0
  208.  
  209.  
  210. # ----------------------------
  211. # Determines the number of seconds that the lock manager will wait after a
  212. # conflict has been encountered before purging locks from dead processes 
  213. # and doing extra deadlock scan cycle. Engine detects deadlocks instantly 
  214. # in all normal cases, so this value affects things only if something goes
  215. # wrong. Setting it too low may degrade system performance. 
  216. #
  217. # Type: integer
  218. #
  219. #DeadlockTimeout = 10
  220.  
  221.  
  222. # ----------------------------
  223. #
  224. # How often the pages are flushed on disk
  225. # (for databases with ForcedWrites=Off only)
  226. #
  227. # Number of unflushed writes which will accumulate before they are
  228. # flushed, at the next transaction commit.  For non-Win32 ports,
  229. # the default value is -1 (Disabled)
  230. #
  231. # Type: integer
  232. #
  233. #MaxUnflushedWrites = 100
  234.  
  235. #
  236. # Number of seconds during which unflushed writes will accumulate
  237. # before they are flushed, at the next transaction commit. For non-Win32
  238. # ports, the default value is -1 (Disabled)
  239. #
  240. # Type: integer
  241. #
  242. #MaxUnflushedWriteTime = 5
  243.  
  244.  
  245. # ----------------------------
  246. # Client Connection Settings (Basic)
  247. #
  248. # Seconds to wait before concluding an attempt to connect has failed.
  249. #
  250. # Type: integer
  251. #
  252. #ConnectionTimeout = 180
  253.  
  254. #
  255. # Seconds to wait on a silent client connection before the server sends
  256. # dummy packets to request acknowledgment.
  257. #
  258. # DO NOT USE THIS OPTION. It may hang or crash Windows on the client side as 
  259. # explained here: http://support.microsoft.com/default.aspx?kbid=296265
  260. # or may not prevent eventual inactive client disconnection for other OS.
  261. #
  262. # Normally, Firebird uses SO_KEEPALIVE socket option to keep track of 
  263. # active connections. If you do not like default 2-hour keepalive timeout
  264. # then adjust your server OS settings appropriately. On UNIX-like OS's, 
  265. # modify contents of /proc/sys/net/ipv4/tcp_keepalive_*. On Windows, 
  266. # follow instrutions of this article:
  267. # http://support.microsoft.com/default.aspx?kbid=140325
  268. #
  269. # Type: integer
  270. #
  271. #DummyPacketInterval = 0
  272.  
  273.  
  274. # ----------------------------
  275. # TCP Protocol Settings
  276. #
  277. # The TCP Service name/Port number to be used for client database
  278. # connections. 
  279. #
  280. # It is only necessary to change one of the entries, not both.  The
  281. # order of precendence is the 'RemoteServiceName' (if an entry is
  282. # found in the 'services.' file) then the 'RemoteServicePort'.
  283. #
  284. # Type: string, integer
  285. #
  286. #RemoteServiceName = gds_db
  287. #RemoteServicePort = 3050
  288.  
  289. #
  290. # The TCP Port Number to be used for server Event Notification
  291. # messages.  The value of 0 (Zero) means that the server will choose
  292. # a port number randomly.
  293. #
  294. # Type: integer
  295. #
  296. #RemoteAuxPort = 0
  297.  
  298. #
  299. # TCP/IP buffer size for send and receive buffers of both the client
  300. # and server. The engine reads ahead of the client and can send 
  301. # several rows of data in a single packet. The larger the packet size,
  302. # the more data is sent per transfer. Range is 1448 to 32768.
  303. #
  304. # Type: integer
  305. #
  306. #TcpRemoteBufferSize = 8192
  307.  
  308. #
  309. # Either enables or disables Nagle algorithm (TCP_NODELAY option of
  310. # socket) of the socket connection.
  311. #
  312. # Note: Currently this is only active for super server, classic
  313. # server needs an extra wrapper program.
  314. #
  315. # Type: boolean
  316. #
  317. #TcpNoNagle = 0
  318.  
  319. #
  320. # Allows incoming connections to be bound to the IP address of a
  321. # specific network card. It enables rejection of incoming connections
  322. # through any other network interface except this one. By default,
  323. # connections from any available network interface are allowed.
  324. #
  325. # Type: string
  326. #
  327. #RemoteBindAddress = 
  328.  
  329.  
  330. # ----------------------------
  331. # Locking and shared memory parameters
  332. #
  333. # Bytes of shared memory allocated for lock manager. 
  334. # In Classic mode, the size given is used for the initial allocation. The
  335. # table expands dynamically up to the limit of memory. In SuperServer, the
  336. # initial size is also the final size.
  337. # Default is 96K on Linux and Solaris, 256K on Windows.
  338. #
  339. # Type: integer
  340. #
  341. #LockMemSize = 262144
  342.  
  343. #
  344. # Number of semaphores for interprocess communication.
  345. # In non-threading environments, this sets the number of semaphores
  346. # available
  347. #
  348. # Type: integer
  349. #
  350. #LockSemCount = 32
  351.  
  352. #
  353. # When a connection wants to lock an object, it gets a lock request 
  354. # block which specifies the object and the lock level requested. Eack
  355. # locked object has a lock block. Request blocks are connected to those
  356. # lock blocks either as requests that have been granted, or as pending
  357. # requests. 
  358. #
  359. # The settings:
  360. #     1 means locks are granted first come, first served.
  361. #    0 means emulate InterBase v3.3 behavior, where locks are granted 
  362. #      as soon as they are available; can result in lock request
  363. #       starvation.
  364. #
  365. # Type: integer/boolean
  366. #
  367. #LockGrantOrder = 1
  368.  
  369. #
  370. # In Classic, only one client process may access the lock table at any
  371. # time. Access to the lock table is governed by a mutex. The mutex can
  372. # be requested conditionally - a wait is a failure and the request must
  373. # be retried - or unconditionally - the request will wait until it is
  374. # satisfied. This parameter establishes the number of attempts that
  375. # will be made conditionally. Zero value means unconditional mode.
  376. # Relevant only on SMP machines.
  377. #
  378. # Type: integer
  379. #
  380. #LockAcquireSpins = 0
  381.  
  382. #
  383. # Tune lock hash list; more hash slots mean shorter hash chains. Only
  384. # necessary under very high load. Prime number values are recommended.
  385. #
  386. # Type: integer
  387. #
  388. #LockHashSlots = 101
  389.  
  390. # ----------------------------
  391. #
  392. # Bytes of shared memory allocated for event manager.
  393. #
  394. # Type: integer
  395. #
  396. #EventMemSize = 65536
  397.  
  398.  
  399. # ===========================
  400. # SuperServer Engine Settings
  401. # ===========================
  402. #
  403. # ----------------------------
  404. # Which CPUs should be used (Windows Only)
  405. #
  406. # In an SMP system, sets which processors can be used by the server.  
  407. # The value is taken from a bit map in which each bit represents a CPU.
  408. # Thus, to use only the first processor, the value is 1. To use both
  409. # CPU 1 and CPU 2, the value is 3. To use CPU 2 and CPU 3, the value
  410. # is 6. The default value is 1.
  411. #
  412. # Type: integer
  413. #
  414. #CpuAffinityMask = 1
  415.  
  416.  
  417. # ----------------------------
  418. # Settings for the thread scheduler (Windows Only)
  419. #
  420. # The wait time, in milli-seconds (ms), before the priority of:
  421. #    - an inactive thread is reduced to 'Low', or 
  422. #    - an active thread is increased to 'High'
  423. #
  424. # Note: The default value was chosen based on experiments on Intel 
  425. # PIII/P4 processors.  It should be increased for using in the computer
  426. # with lower speed processors.
  427. #
  428. # Type: integer
  429. #
  430. #PrioritySwitchDelay = 100
  431.  
  432. #
  433. # Number of cycles of the scheduler (PrioritySwitchDelay ms) before
  434. # thread are destroyed/closed.  Rather than immediately destroy/closed
  435. # worker threads (which would require a semaphore and blocking call --
  436. # significant overhead), the thread scheduler maintains a pool of the
  437. # threads.  When a thread has completed it's task/work, it is marked as
  438. # idle.  The idle thread is destroyed/closed after X iterations of the
  439. # scheduler loop.
  440. #
  441. # For a server with a very large number of connections (presumably more
  442. # than several hundred) the setting value should be increased. 
  443. #
  444. # The setting represents the number of loop iterations to be made before
  445. # the thread is destroyed/closed.
  446. #
  447. # Type: integer
  448. #
  449. #DeadThreadsCollection = 50
  450.  
  451. #
  452. # Number of additional 'intervals' given to a 'High' priority thread.
  453. #
  454. # Type: integer
  455. #
  456. #PriorityBoost = 5
  457.  
  458.  
  459. # ==============================
  460. # Classic Server Engine Settings
  461. # ==============================
  462. #
  463.  
  464.  
  465. # ==============================
  466. # Settings for Windows platforms
  467. # ==============================
  468. #
  469. # ----------------------------
  470. # Does the guardian restart the server every time it crashes?
  471. #    0 - only start the engine/service once
  472. #    1 - always restart the engine/service if it terminates
  473. #
  474. # Type: integer/boolean
  475. #
  476. #GuardianOption = 1
  477.  
  478.  
  479. #
  480. # ----------------------------
  481. # Priority level/class for the server process.
  482. #
  483. # The values are:
  484. #     0 (Zero) - normal priority,
  485. #     positive value - high priority (same as -B command line option)
  486. #     negative value - low priority.
  487. #
  488. # Note: All changes to this value should be carefully tested to ensure
  489. # that engine is more responsive to requests.
  490. #
  491. # Type: integer
  492. #
  493. #ProcessPriorityLevel = 0
  494.  
  495.  
  496. # ----------------------------
  497. # Local Connection Settings
  498. #
  499. # Size in bytes of one client's portion of the memory mapped file used
  500. # for local connections.
  501. #
  502. # Type: integer
  503. #
  504. #IpcMapSize= 4096
  505.  
  506. #
  507. # The name of the shared memory area used as a transport channel in local protocol.
  508. # The default value is not compatible with IB/FB1. Use value 'InterBaseIPI' to
  509. # restore compatibility, if necessary.
  510. #
  511. # Type: string
  512. #
  513. #IpcName = FirebirdIPI
  514.  
  515. #
  516. # The name of the pipe used as a transport channel in NetBEUI protocol.
  517. # Has the same meaning as a port number for TCP/IP. The default value is
  518. # compatible with IB/FB1.
  519. #
  520. # Type: string
  521. #
  522. #RemotePipeName = interbas
  523.  
  524. # Does the server need to create a (hidden) window used for IPC communication.
  525. # Turn this off to run the server without a window and hence without local protocol.
  526. # Can be used for running a few instances of the server simultaneously on win32.
  527. #
  528. # Type: boolean
  529. #
  530. #CreateInternalWindow = 1
  531.  
  532.  
  533. # ============================
  534. # Settings for Unix/Linux platforms
  535. # ============================
  536. #
  537. #
  538. # UNIX signal to use for interprocess communication 
  539. #
  540. # Type: integer
  541. #
  542. #LockSignal = 16
  543.  
  544.  
  545. # ----------------------------
  546. # Allow opening of data files on NFS volumes
  547. #
  548. # Allows for database files which exists on a NFS mounted partition to
  549. # be opened by the engine.
  550. #
  551. # The original behavour was to try and connect to server on the remote
  552. # machine via port 3050, this ensures that all opens of a file occur on
  553. # the same machine and locking etc can be handled appropriately. However,
  554. # this often causes frustration since often you end up in a position 
  555. # where you really do want db files to be opened by the local process
  556. # even though it resides on a NFS share.  So this option allows for this
  557. # 'feature' to be turned off.
  558. #
  559. # Type: boolean
  560. #
  561. #RemoteFileOpenAbility = 0
  562.  
  563.  
  564. #######################################
  565. #
  566. # KB to Bytes Conversion table
  567. #
  568. #######################################
  569. #
  570. #    KB     Bytes         KB     Bytes
  571. #   ----    ---------    ----    ---------
  572. #      1    1024           32    32768
  573. #      2    2048           64    65536 
  574. #      4    4096          128    131072
  575. #      8    8192          256    262144  
  576. #     16    16384         512    524288
  577. #
  578. #######################################
  579. #
  580. # MB to Bytes Conversion table
  581. #
  582. #######################################
  583. #
  584. #    MB    Bytes           MB    Bytes            MB    Bytes
  585. #   ---    ---------      ---    -----------     ---    -----------
  586. #     1    1048576         64    67108864        448    469762048
  587. #     2    2097152        128    134217728       512    536870912
  588. #     4    4194304        192    201326592       640    671088640
  589. #     8    8388608        256    268435456       768    805306368
  590. #    16    16777216       320    335544320       896    939524096
  591. #    32    33554432       384    402653184      1024    1073741824
  592. #
  593.